//
//  ContainsModel.m
//  MBObjectServer
//
//  Created by admin on 3/6/14.
//  Copyright (c) 2014 MBpayer. All rights reserved.
//

#import "ContainsModel.h"

@implementation ContainsModel
+(id) getContainsModelFromDictionary:(NSDictionary *)dic
{
    ContainsModel * contains = [[ContainsModel alloc]init] ;
    contains.ID = [dic objectForKey:@"ID"];
    contains.OrgCode = [dic objectForKey:@"OrgCode"];
    contains.OwnerOrgCode = [dic objectForKey:@"OwnerOrgCode"];
    contains.ContainerID = [dic objectForKey:@"ContainerID"];
    contains.Description = [dic objectForKey:@"Description"];
    contains.Status = [dic objectForKey:@"Status"];
    contains.EntityState = [dic objectForKey:@"EntityState"];
    contains.Selected = [dic objectForKey:@"Selected"];
    return contains ;
}
+(NSMutableDictionary *) getDictionaryFromContainsModel:(ContainsModel *)containsModel
{
    NSMutableDictionary * dic = [[NSMutableDictionary alloc]init] ;
    [dic setObject:containsModel.ID forKey:@"ID"];
    [dic setObject:containsModel.OrgCode forKey:@"OrgCode"];
    [dic setObject:containsModel.OwnerOrgCode forKey:@"OwnerOrgCode"];
    [dic setObject:containsModel.ContainerID forKey:@"ContainerID"];
    [dic setObject:containsModel.Description forKey:@"Description"];
    [dic setObject:containsModel.Status forKey:@"Status"];
    [dic setObject:containsModel.EntityState forKey:@"EntityState"];
    [dic setObject:containsModel.Selected forKey:@"Selected"];
    return dic ;
}

@end
